using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Data/State/Player/PlayerSpawn", fileName = "PlayerSpawn")]
public class PlayerState_Spawn : PlayerState
{
    //
    public override void Enter()
    {
        base.Enter();
        playerFoot.SetActive(true);
        playerBox2D.enabled = true;
        // 玩家数据初始化
        playerStatusInformation.PlayerStateInitialization();
    }
    
    //
    public override void Exit()
    {
        base.Exit();
    }
    
    //
    public override void LogicUpdate()
    {
        base.LogicUpdate();
        if(isAnimationFinished)
            stateMachine.SwitchState(stateMachine.stateTable[typeof(PlayerState_Idle)]);
    }
    
    //
    public override void PhysicalUpdate()
    {
        base.PhysicalUpdate();
    }
}
